<?php

if (!defined('access')){
	die ('Direct access Denied!');
} else {
	
	define('libmail', true);
	
	class Mail {
		private $from,$to,$subject,$content;
		
		public function __construct(){}
	
		public function contact($from,$to,$subject,$content){
		
			$message = '<html>
							<head>
								<title>'. $subject .'</title>
							</head>
							<body>
								<img src="template/images/logo.png"/>'.
								$message.
							'</body>
						</html>';
						
			$additional_headers  = 'MIME-Version: 1.0'. "\r\n";
			$additional_headers .= 'Content-type: text/html; charset=iso-8859-1'. "\r\n";
			$additional_headers .= 'From: '. $from;
			
			mail($to,$subject,$message,$additional_headers);
		}
	}
}

?>